package Service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import Dao.PlDao;
import VO.AlterPlVO;
import VO.PLVO;
import VO.PlcAddVO;
import VO.PlcVO;


public class PlService {

private PlDao pld;
public void addPl(String pname){
	
	pld.addPl(pname);
}
public void setPld(PlDao pld) {
	this.pld = pld;
}
public List<PLVO> showPList(int page, int pageSize) {
	return pld.showPList(page,pageSize);
	
}
public int getAll() {
	return pld.getAll();
	
}
public List<PlcVO> showPlInfo(int pid) {
	System.out.println("service");
	return pld.showPlInfo(pid);
}
public void addPlc(List<PlcAddVO> listPlcAddVO){
	 pld.addPlc(listPlcAddVO);
}
public String showPlName(int pid) {
	 return pld.showPlName(pid);
}
public void deletePl(int pid) {
	pld.deletePl(pid);
	
}
public void alterPl(AlterPlVO alterPlVO) {
	pld.alterPl(alterPlVO);
	
}




}

